// DriveNotes. Copyright (c) 2011, Andrei Senchuk. All rights reserved.
package net.taviscaron.drivenotes.server.util;

import net.taviscaron.drivenotes.shared.exceptions.InvalidEntityException;

/**
 * Exceptions utils
 * @author Andrei Senchuk
 */
public class ExceptionUtils {
    public static InvalidEntityException invalidEntityException(Object reason) {
        return new InvalidEntityException((reason != null) ? reason.toString() : null);
    }
}
